<template>
	<view>
		<view class="main">
			
		<view class="header">
			<view class="title">
				添加紧急联系人
			</view>
			<view class="list" style="align-items:flex-start">
				<view class="dots" style="margin-top: 20rpx;">
					<view class="dot"></view>
				</view>
				<view class="">
					设置后仅在使用<text class="text-warning">110报警</text>或紧急情况下，或紧急情况下，会主动通知紧急联系人
				</view>
			</view>
			<view class="list">
				<view class="dot"></view>
				<view class="">
					目前仅支持号码归属地为中国大陆的手机号码
				</view>
			</view>
			<view class="list">
				<view class="dot"></view>
				<view class="">
					添加或修改紧急联系人后请及时告知对方
				</view>
			</view>
		</view>
		
		<view class="add">
			<text class="iconfont icon-tianjia" @click="edit(0)"></text>
			<text class="title" >添加紧急联系人</text>
		</view>
		
		<view class="user-list">
			<text class="username">好人</text>
			<text class="phone">11111</text>
			<text class="edit" @click="edit(1)">管理</text>
		</view>
		<view class="user-list">
			<text class="username"></text>
			<text class="phone"></text>
			<text class="edit">管理</text>
		</view>
		<view class="user-list">
			<text class="username"></text>
			<text class="phone"></text>
			<text class="edit">管理</text>
		</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:3
			}
		},
		methods: {
			// 编辑
			edit(type){
				uni.navigateTo({
					url:'../contact-list/contact-list?type='+type
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.main{
		padding: 0 26rpx;
	}
	.header{
		.title{
			height: 108rpx;
			line-height: 108rpx;
			font-size: 36rpx;
			font-weight: 500;
			color: #333333;
		}
		
	}
	.list{
			margin-top: 20rpx;
			display: flex;
			align-items: center;
			font-size: 28rpx;
			color: rgba(51, 51, 51, 0.87);
			.dot{
				width: 12rpx;
				height: 12rpx;
				background: rgba(0, 0, 0, 0.5);
				border-radius: 50%;
				margin-right: 24rpx;
			}
		}
		.add{
			margin-top: 16rpx;
			height: 108rpx;
			line-height: 108rpx;
			display: flex;
			align-items: center;
			border-bottom: solid 1rpx #E5E5E5;
			box-sizing: border-box;
			.iconfont{
				padding-right: 24rpx;
				font-size: 48rpx;
			}
			.title{
				font-size: 32rpx;
				color: rgba(0, 0, 0, 0.87);
			}
		}
		.disabled{
			.title{
				color: rgba(0, 0, 0, 0.38);
			}
		}
		
		.user-list{
			font-size: 32rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(0, 0, 0, 0.87);
			display: flex;
			padding: 32rpx 0;
			border-bottom: solid 1rpx #E5E5E5;
			box-sizing: border-box;
			padding-left: 73rpx;
			.edit{
				margin-left: auto;
				margin-right: 18rpx;
			}
			.username{
				margin-right: 16rpx;
			}
		}
</style>
